package com.jackrain.nea.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.jackrain.nea.fc.cp.api.ChrusersWebQueryCmd;
import com.jackrain.nea.web.face.User;
import com.jackrain.nea.web.security.Security4Utils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

//import com.jackrain.nea.core.db.Tools;

/**
 * 提供vp查询USER
 *
 * @author WSL
 * @create 2017/12/13
 */
@Slf4j
@Component("UsersWebQueryCmdImpl-cp")
@Service(protocol = "dubbo", validation = "true", version = "1.0", group = "cp")
public class UsersWebQueryCmdImpl implements ChrusersWebQueryCmd {


    public User getUser(String userName) {
//        return Tools.getUser(userName);
        return Security4Utils.getUser(userName);

    }
}
